# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=xca
pkgver=2.8.0
pkgrel=0
pkgdesc="X certificate and key management"
url="https://hohnstaedt.de/xca/"
arch="all"
license="BSD-3-Clause"
options="!check" # no tests
depends="qt6-qtbase-sqlite"
makedepends="qt6-qttools-dev openssl-dev libtool cmake"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="https://github.com/chris2511/xca/releases/download/RELEASE.$pkgver/xca-$pkgver.tar.gz
	"

build() {
	cmake -B build xca
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build --prefix /usr
}

sha512sums="
d9642793ac265fc3e34655aa30b056dd177339a714716da32edc839c08402309781eb482fe5a912e9990ce4551c1bf356986ad1680515a02751dc690545f56ff  xca-2.8.0.tar.gz
"
